<?php
/**
 * 签到
 */
namespace module\manage\controller;

use app\Controller;
use app\model\UserSignin as Model;

class Signin extends Controller
{
    /**
     * 列表.
     * 
     */
    public function index()
    {
        $result = Model::withSearch(['date', 'user_id'], input('get.'))->paginate([
            'list_rows'=> input('get.pageSize/d', 10),
        ]);
        return json([
            'items' => $result->items(),
            'total' => $result->total()
        ]);
    }
}
